//创建枚举对象
enum Gender { Female, Male}

//使用枚举
let userGender: Gender

userGender = Gender.Female
// userGender = Gender.Male

console.log(userGender)